<%@ page contentType="text/html;charset=UTF-8" language="java"%>

<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%--STRUTS LAYOUT--%>
<%@ taglib uri="/WEB-INF/tld/struts-layout.tld" prefix="layout" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>

<%--   --%>
<%@ page import="fr.improve.struts.taglib.layout.util.LayoutUtils" %>
<% LayoutUtils.init(pageContext.getServletContext()); %>

<layout:html locale="true" styleClass="FORM" >
	<layout:panel styleClass="FORM">
		<layout:text property="expertoFilt.CPersona" key="form.CPersona" styleClass="LABEL"></layout:text>
		<layout:text property="expertoFilt.XNombre" key="form.XNombre" styleClass="LABEL"></layout:text>
		<layout:text property="expertoFilt.XApellido" key="form.XApellido" styleClass="LABEL"></layout:text>
		<layout:select property="expertoFilt.CTipoDocumento" key="form.TipoDoc">
			<layout:options collection="TIPO_DOCUMENTO" property="value"
				labelProperty="label"></layout:options>
		</layout:select>
		<layout:text property="expertoFilt.NTipoDocumento" key="form.NTipoDocumento"
			styleClass="LABEL"></layout:text>

		
		<layout:image property="btnBuscarExperto" altKey="image.buscar.alttext"
			srcKey="image.buscar" bundle="bundle.image"></layout:image>
	</layout:panel>

<c:if test='${not empty LISTA_DE_EXPERTOS}'>
		<layout:collection id="persona" name="LISTA_DE_EXPERTOS" styleClass="FORM" selectProperty="CPersona"
			 selectType="checkbox" selectName="idSeleccionExperto" >
<%--		selectName="idSeleccion" selectType="checkbox"--%>
			<layout:collectionItem property="CPersona" title="form.CPersona" />
			<layout:collectionItem property="XNombre" title="form.XNombre" />
			<layout:collectionItem property="XApellido" title="form.XApellido" />
		</layout:collection>
		<layout:image property="btnGuardar" altKey="image.guardar.alttext"
			srcKey="image.guardar" bundle="bundle.image"></layout:image>
		<layout:image property="btnCancelar" altKey="image.cancelar.alttext"
			srcKey="image.cancelar" bundle="bundle.image"></layout:image>
</c:if>

<c:if test='${empty LISTA_DE_EXPERTOS}'>
	<layout:message key="prompt.noresults" />
</c:if>
</layout:html>
